package com.project.class8_24.builder;

/**
 * 联想电脑厂商
 */
public class LenovoBuilder implements IBuilder {
    private Computer computer;

    public LenovoBuilder(String cpu,String ram){
        computer = new Computer(cpu,ram);
    }

    @Override
    public void builderUsbCount() {
        computer.setUsbCount(3);
    }

    @Override
    public void builderMouse() {
        computer.setMouse("联想光电变色鼠标");
    }

    @Override
    public void builderKeyBorder() {
        computer.setKeyborder("联想108键盘");
    }

    @Override
    public Computer getComputer() {
        return this.computer;
    }
}
